<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>添加目的地特色信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data"
		action="${cpath }/admin/weibo/send">

		<table class="fitem">
			<c:if test="${!empty res }">
				<script>
					alert("${res}");
				</script>
			</c:if>
			<tr>
				<td><label>用户昵称:</label>
				</td>
				<td><input  name="userScreen" required="true"/>
				</td>
			</tr>
			<tr>
				<td><label>微博内容(140字):</label>
				</td>
				<td><textarea name="weiboDesc" id="weiboDesc" data-options="validType:'length[0,140]'" 
						class="easyui-validatebox" style="width:392px;height:80px"></textarea>
				</td>
			</tr>
			<tr>
				<td><label>添加资源图片</label></td>
				<td><input id="addFile" type="button" value="添加图片" /></td>
			</tr>
		</table>
		<table id="fileTable">
			<tr>
				<td><input name="mfile" type="file" class="easyui-validatebox" required="true"/>
				</td>
			</tr>
		</table>
		<buttongroup>
			<button type="submit" value="发表">发表</button>
		</buttongroup>
		
	</form>

	<script type="text/javascript">
	$(function() {
		//add more file components if Add is clicked
		$('#addFile').click(function() {
			var fileIndex = $('#fileTable tr').length;
			$('#fileTable').append(
					'<tr><td>'+
					'	<input type="file" name="mfile" />'+
					'</td></tr>');
		});
		
	});
	$('#weiboDesc').ceditor();
		
	</script>
	<style type="text/css">
			#fm {
				margin: 0;
				padding: 40px 40px;
			}
			
			.ftitle {
				font-size: 14px;
				font-weight: bold;
				padding: 5px 0;
				margin-bottom: 10px;
				border-bottom: 1px solid #ccc;
			}
			
			.fitem {
				margin-bottom: 5px;
			}
			
			.fitem label {
				display: inline-block;
				width: 90px;
			}
			
		 </style>
</body>
</html>